package edu.scau.cxq.gp.service.impl;

import edu.scau.cxq.gp.service.ICustomerService;
import edu.scau.cxq.gp.entity.dto.CustomerSignDTO;
import edu.scau.cxq.gp.entity.Customer;
import edu.scau.cxq.gp.mapper.CustomerMapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @description 存储客户信息 服务实现类
 * @return
 * @author TLC
 */

@Service
public class CustomerServiceImpl extends ServiceImpl<CustomerMapper, Customer> implements ICustomerService {

    @Resource
    private CustomerMapper customerMapper;
    @Override
    public List<CustomerSignDTO> findCustomerSigns() {
        return customerMapper.selectAllSignOfCustomer();
    }
}
